package com.pine.common.beans.pineframework.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 系统配置表新增或修改请求体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-13
 */
@Data
@Schema(title = "SysConfigSaveOrUpdateRequest", description = "系统配置表新增或修改请求体")
public class SysConfigSaveOrUpdateRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 4542588349104879559L;

    /**
     * 主键
     */
    @Schema(title = "id", description = "主键")
    private Long id;
    /**
     * 配置名称
     */
    @NotBlank(message = "配置名称不能为空")
    @Schema(title = "configName", description = "配置名称")
    private String configName;
    /**
     * 配置key
     */
    @NotBlank(message = "配置key不能为空")
    @Schema(title = "configKey", description = "配置key")
    private String configKey;
    /**
     * 配置值
     */
    @NotBlank(message = "配置值不能为空")
    @Schema(title = "configValue", description = "配置值")
    private String configValue;
    /**
     * 状态:0=启用,1=禁用
     */
    @Schema(title = "status", description = "状态:0=启用,1=禁用")
    private Integer status;
    /**
     * 描述、备注
     */
    @Schema(title = "remark", description = "描述、备注")
    private String remark;
}
